package com.it.mapper;


import com.it.domain.Account;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

//操作持久层的接口
public interface AccountMapper {


    @Select("select * from account")
    List<Account> findAll();

    @Select("select *from account where name=#{name}")
    Account findByName(String name);

    @Update("update account  set name=#{name},money=#{money} where id=#{id}")
    void update(Account account);
}
